<%@ page pageEncoding='UTF-8'%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:set var="contextPath" value="#request.get('javax.servlet.forward.context_path')" scope="request" />
<!DOCTYPE html>
<head>
    <title>MediClinic | Dispensary & Surgery | Dr. W. P. Sanjeewa Withana</title>
    <%-- header --%>
    <jsp:include page="/WEB-INF/content/common/Header.jsp" flush="true"/>
    <script src="${contextPath}/js/common/user.js"></script>
</head>
<body class="metro home">
	<%-- tob-bar --%>
    <jsp:include page="/WEB-INF/content/common/TopBar.jsp" flush="true"/>
       	
	<div id="main-container" class="body-wrapper login-body-wrapper">
        <%-- tob-container --%>
    	<jsp:include page="/WEB-INF/content/common/TopContainer.jsp" flush="true"/>
        
    	<div id="body-container">
        	<div id="login-form-container" class="login-home-container tile-area form-container">
				<form id="userlogin-form" class="userlogin-form" action="${contextPath}/userlogin/login" method="post">
				
					<fieldset class="fg-white" style="width: 300px;">
                        <legend class="header fg-black">User Login</legend>
                        <div class="action-error-container">
                            <s:if test="hasActionErrors()">
                                <s:actionerror/>
                            </s:if>
                        </div>
                        <label class="subheader-secondary fg-black"><b>Username</b><em class="text-alert">*</em></label>
                        <div class="input-control text">
                            <input type="text" class="bg-darkBlue fg-white" id="loginUsername" name="guiUserLogin.username" value="${guiUserLogin.username}" placeholder="input username" required/>
                            <button class="btn-clear"></button>
                        </div>
                        <label class="subheader-secondary fg-black"><b>Password</b><em class="text-alert">*</em></label>
                        <div class="input-control password">
                            <input type="password" class="bg-darkBlue fg-white" id="loginPassword" name="guiUserLogin.password" value="" placeholder="input password" required/>
                            <button class="btn-reveal"></button>
                        </div>
                        <div>
                            <input type="submit" value="Login" class="primary" />
                            <a href="${contextPath}" class="button info">Cancel</a>                                 
                        </div>
                    </fieldset>

        		</form>
    		</div>
    	</div>
        
        <%-- bottom-container --%>
    	<jsp:include page="/WEB-INF/content/common/BottomContainer.jsp" flush="true"/>
        
	</div>
    
    <%-- footer-container --%>
    <jsp:include page="/WEB-INF/content/common/FooterContainer.jsp" flush="true"/>
    
</body>
</html>